import pyautogui

if __name__ == "__main__":
    while True:
        # 获取当前鼠标的屏幕坐标
        current_mouse_position = pyautogui.position()
        print(f"鼠标的屏幕坐标为: X={current_mouse_position[0]}, Y={current_mouse_position[1]}")
